import { createRouter, createWebHashHistory } from 'vue-router'

export const routeMenus = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    title: '聚类图层',
    path: '/home',
    component: () => import(`@/views/home.vue`)
  },
  {
    title: '设置背景',
    path: '/backdrop',
    component: () => import(`@/views/control/backdrop.vue`)
  },
  {
    title: '导航控件',
    path: '/navigation',
    component: () => import(`@/views/control/navigation.vue`)
  },
  {
    title: '基本操作',
    path: '/basicControls',
    component: () => import(`@/views/control/basicControls.vue`)
  },
  {
    title: '图层控件',
    path: '/layerControl',
    component: () => import(`@/views/control/layerControl.vue`)
  },
  {
    title: '比例尺控件',
    path: '/measuringscale',
    component: () => import(`@/views/control/measuringscale.vue`)
  },
  {
    title: '鹰眼控件',
    path: '/hawkEye',
    component: () => import(`@/views/control/hawkEye.vue`)
  },
  {
    title: '全屏控件',
    path: '/fullScreen',
    component: () => import(`@/views/control/fullScreen.vue`)
  },
  {
    title: '图层探查控件',
    path: '/probe',
    component: () => import(`@/views/control/probe.vue`)
  },
  {
    title: '动画效果',
    path: '/animation',
    component: () => import(`@/views/control/animation.vue`)
  },
  {
    title: '鼠标位置',
    path: '/mousePosition',
    component: () => import(`@/views/control/mousePosition.vue`)
  },
  {
    title: '测量',
    path: '/measure',
    component: () => import(`@/views/control/measure.vue`)
  },
  {
    title: '自定义控件',
    path: '/Custom',
    component: () => import(`@/views/control/Custom.vue`)
  },

  //
  {
    title: 'ArcGis',
    path: '/ArcGis',
    component: () => import(`@/views/otherMap/ArcGis.vue`)
  },
  {
    title: 'GeoJson',
    path: '/GeoJson',
    component: () => import(`@/views/otherMap/GeoJson.vue`)
  },
  {
    title: 'OSM',
    path: '/OSM',
    component: () => import(`@/views/otherMap/OSM.vue`)
  },
  {
    title: 'KML',
    path: '/KML',
    component: () => import(`@/views/otherMap/KML.vue`)
  },
  {
    title: 'GPX',
    path: '/GPX',
    component: () => import(`@/views/otherMap/GPX.vue`)
  },
  {
    title: 'BingMap',
    path: '/BingMap',
    component: () => import(`@/views/otherMap/BingMap.vue`)
  },
  {
    title: '天地图',
    path: '/TianMap',
    component: () => import(`@/views/otherMap/TianMap.vue`)
  },
  {
    title: '百度地图',
    path: '/BaiDuMap',
    component: () => import(`@/views/otherMap/BaiDuMap.vue`)
  },
  {
    title: '高德地图',
    path: '/GaoDeMap',
    component: () => import(`@/views/otherMap/GaoDeMap.vue`)
  },
  {
    title: '瓦片地图',
    path: '/WaPianMap',
    component: () => import(`@/views/otherMap/WaPianMap.vue`)
  },
  {
    title: '地图打印',
    path: '/PrintMap',
    component: () => import(`@/views/otherMap/PrintMap.vue`)
  },
  //
  {
    title: '文字标注',
    path: '/textLabel',
    component: () => import(`@/views/mapLabel/textLabel.vue`)
  },
  {
    title: '图片标注',
    path: '/pictureLabel',
    component: () => import(`@/views/mapLabel/pictureLabel.vue`)
  },
  {
    title: '图文标注',
    path: '/imageText',
    component: () => import(`@/views/mapLabel/imageText.vue`)
  },
  {
    title: '拖转添加覆盖物',
    path: '/dragAdd',
    component: () => import(`@/views/mapLabel/dragAdd.vue`)
  },
  {
    title: 'Popup弹窗',
    path: '/mapPopup',
    component: () => import(`@/views/mapLabel/mapPopup.vue`)
  },
  {
    title: '街道标注',
    path: '/streetLabel',
    component: () => import(`@/views/mapLabel/streetLabel.vue`)
  },
  {
    title: '聚合标注',
    path: '/polymerization',
    component: () => import(`@/views/mapLabel/polymerization.vue`)
  },
  {
    title: '水纹动画',
    path: '/waterStreak',
    component: () => import(`@/views/mapLabel/waterStreak.vue`)
  },
  {
    title: '箭头动画',
    path: '/arrow',
    component: () => import(`@/views/mapLabel/arrow.vue`)
  },
  {
    title: '绘制几何图形',
    path: '/draw',
    component: () => import(`@/views/mapDraw/draw.vue`)
  },
  {
    title: '图形交互编辑',
    path: '/edit',
    component: () => import(`@/views/mapDraw/edit.vue`)
  },
  {
    title: '动态投影转换',
    path: '/projection',
    component: () => import(`@/views/mapSenior/projection.vue`)
  },
  {
    title: '视图联动',
    path: '/linkage',
    component: () => import(`@/views/mapSenior/linkage.vue`)
  },
  {
    title: '热力图',
    path: '/heatmap',
    component: () => import(`@/views/mapSenior/heatmap.vue`)
  },
  {
    title: '轨迹追踪',
    path: '/trajectory',
    component: () => import(`@/views/mapSenior/trajectory.vue`)
  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes: routeMenus
})

export default router
